/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package beans;

import java.util.Date;
import java.util.List;

/**
 *
 * @author SOGOBA
 */
public class Personne {
String nom;
Date Date_naiss;
String groupeSangui;
Character sex;
String race;
List<Vaccin> vaccins;

    public Personne() {
    }
/**
 * 
 * @param nom
 * @param Date_naiss
 * @param groupeSangui
 * @param sex
 * @param race
 */
    public Personne(String nom, Date Date_naiss, String groupeSangui, Character sex, String race) {
        this.nom = nom;
        this.Date_naiss = Date_naiss;
        this.groupeSangui = groupeSangui;
        this.sex = sex;
        this.race = race;
    }

    public Date getDate_naiss() {
        return Date_naiss;
    }

    public String getGroupeSangui() {
        return groupeSangui;
    }

    public String getNom() {
        return nom;
    }

    public String getRace() {
        return race;
    }

    public Character getSex() {
        return sex;
    }

    public void setDate_naiss(Date Date_naiss) {
        this.Date_naiss = Date_naiss;
    }

    public void setGroupeSangui(String groupeSangui) {
        this.groupeSangui = groupeSangui;
    }

    public void setNom(String nom) {
        this.nom = nom;
    }

    public void setRace(String race) {
        this.race = race;
    }

    public void setSex(Character sex) {
        this.sex = sex;
    }

 public void setVaccins(List<Vaccin> vaccins) {
        this.vaccins = vaccins;
    }

    public List<Vaccin> getVaccins() {
        return vaccins;
    }
    @Override
    public String toString() {
        return "Personne{" + "nom=" + nom + '}';
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Personne other = (Personne) obj;
        if ((this.nom == null) ? (other.nom != null) : !this.nom.equals(other.nom)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 53 * hash + (this.nom != null ? this.nom.hashCode() : 0);
        return hash;
    }
 

}
